<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<#include "/header.html">
</head>
<body>
	<div id="rrapp" v-cloak>
		<div v-show="showList">
			<div class="grid-btn">
				<div>
					<input type="text"  v-model="q.bookName" @keyup.enter="query" placeholder="书籍名称">
					<input type="text"  v-model="q.isbnNo"  @keyup.enter="query" placeholder="ISBN">
					<input type="text"  v-model="q.rfidCode" @keyup.enter="query" placeholder="RFID">
					<br/>
					<input type="date"  v-model="q.borrowStartTime" @keyup.enter="query" placeholder="借阅开始时间">
					<input type="date"  v-model="q.borrowEndTime" @keyup.enter="query" placeholder="借阅结束时间">借阅时间
					<a class="btn btn-default" @click="query">查询</a>
				</div>
			</div>
			<br/><br/><br/><br/>
		    <table id="jqGrid"></table>
		    <div id="jqGridPager"></div>
	    </div>
	</div>
</body>
<script type="text/javascript" src="${request.contextPath}/statics/js/modules/client/client-book.js?_${.now?long}"></script>
<script type="text/javascript">

	function cancelBook(rfidCode,userId,orderTransId){
		//console.log("ddd");
		var data ={"rfidCode":rfidCode,"userId":userId,"orderTransId":orderTransId};
		$.ajax({
			url : baseURL + 'client/manager/cancelBook',
			type : 'POST',
			contentType : "application/json; charset=utf-8",
			data : JSON.stringify(data),
			dataType : 'json',
			success : function(result) {
				if (result.detail != null) {
					layer.msg(result.detail.message, {
						icon : -1
					});
				} else {
					layer.msg(message, {
						icon : -1
					});
				}
				vm.reload();
			}
		});
	}
</script>
</html>